package com.example.common.Interface.product.service;

import com.example.common.Interface.cart.entity.vo.CartItemVO;
import com.example.common.Interface.product.entity.dto.*;

import java.util.List;

public interface ProductService {
    InsertProductRespDTO insert(InsertProductReqDTO request);
    List<InsertProductRespDTO> insertList(List<InsertProductReqDTO> request);
    DeleteProductRespDTO delete(DeleteProductReqDTO request);
    SearchProductsRespDTO search(SearchProductsReqDTO request);
    UpdateProductRespDTO update(UpdateProductReqDTO request);
    GetProductRespDTO get(GetProductReqDTO request);
    List<GetProductRespDTO> getList(List<GetProductReqDTO> request);
    boolean deductStock(List<CartItemVO> request);
    boolean addStock(List<CartItemVO> request);
    ListProductsRespDTO list(ListProductsReqDTO request);
}

